package com.dyc.caradvertisting.ui.fmt.tab.mine.mDevice;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.dyc.caradvertisting.R;
import com.njh.tools.base.BaseFragment;

/**
 * 我的设备
 */
public class MyDeviceFragment extends BaseFragment {
    // TODO: Rename and change types and number of parameters
    public static MyDeviceFragment newInstance() {
        MyDeviceFragment fragment = new MyDeviceFragment();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return getView(inflater, container);
    }
    @Override
    public int getLayoutId() {
        return R.layout.fragment_my_device;
    }

    @Override
    public void initView(View baseView) {
        initToolbarNav(R.string.title_my_facility);
    }

    @Override
    public boolean isSwipeBack() {
        return true;
    }

    @Override
    public void initPresenter() {

    }

    /**
     * This interface must be implemented by activities that contain this
     * fragment to allow an interaction in this fragment to be communicated
     * to the activity and potentially other fragments contained in that
     * activity.
     * <p>
     * See the Android Training lesson <a href=
     * "http://developer.android.com/training/basics/fragments/communicating.html"
     * >Communicating with Other Fragments</a> for more information.
     */
    public interface OnFragmentInteractionListener {
        // TODO: Update argument type and name
        void onFragmentInteraction(Uri uri);
    }
}
